import request from '@/utils/request'

// 获取分销设置用户拉新全局设置信息
export function getGlobalSetting(params) {
  return request({
    url: '/ops/distributionGlobalSetting/getDistributorGlobalSetting',
    method: 'get',
    params: { tenantId: params }
  })
}

// 新增或修改全局设置
export function saveOrUpdateGlobalForm(data) {
  return request({
    url: '/ops/distributionGlobalSetting/addOrUpdateGlobalSetting',
    method: 'post',
    data
  })
}

// 新增或修改全局设置
export function getDistributionPersonSetting(params) {
  return request({
    url: '/ops/distributionGlobalSetting/getDistributorPersonSetting',
    method: 'get',
    params: { distributorId: params }
  })
}

